home *** CD-ROM | disk | FTP | other *** search
Wrap
WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) NNNNAAAAMMMMEEEE _W_M_S_h_e_l_l - The WMShell widget class SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/Xm.h> #include <X11/Shell.h> DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN WMShell is a top-level widget that encapsulates the interaction with the window manager. CCCCllllaaaasssssssseeeessss WMShell inherits behavior and resources from _C_o_r_e, _C_o_m_p_o_s_i_t_e, and _S_h_e_l_l classes. The class pointer is _w_m_S_h_e_l_l_W_i_d_g_e_t_C_l_a_s_s. The class name is _W_M_S_h_e_l_l. NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the _X_m prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is not applicable (N/A). WWWWMMMMSSSShhhheeeellllllll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss ______________________________________________________________________________ XmNbaseHeight XmCBaseHeight int XtUnspecifiedShellInt CSG XmNbaseWidth XmCBaseWidth int XtUnspecifiedShellInt CSG XmNheightInc XmCHeightInc int XtUnspecifiedShellInt CSG XmNiconMask XmCIconMask Pixmap NULL CSG XmNiconPixmap XmCIconPixmap Pixmap NULL CSG XmNiconWindow XmCIconWindow Window NULL CSG XmNiconX XmCIconX int -1 CSG XmNiconY XmCIconY int -1 CSG XmNinitialState XmCInitialState int NormalState CSG XmNinput XmCInput Boolean False CSG XmNmaxAspectX XmCMaxAspectX int XtUnspecifiedShellInt CSG XmNmaxAspectY XmCMaxAspectY int XtUnspecifiedShellInt CSG XmNmaxHeight XmCMaxHeight int XtUnspecifiedShellInt CSG Page 1 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) XmNmaxWidth XmCMaxWidth int XtUnspecifiedShellInt CSG XmNminAspectX XmCMinAspectX int XtUnspecifiedShellInt CSG XmNminAspectY XmCMinAspectY int XtUnspecifiedShellInt CSG XmNminHeight XmCMinHeight int XtUnspecifiedShellInt CSG XmNminWidth XmCMinWidth int XtUnspecifiedShellInt CSG XmNtitle XmCTitle String dynamic CSG XmNtitleEncoding XmCTitleEncoding Atom dynamic CSG XmNtransient XmCTransient Boolean False CSG XmNwaitForWm XmCWaitForWm Boolean True CSG XmNwidthInc XmCWidthInc int XtUnspecifiedShellInt CSG XmNwindowGroup XmCWindowGroup Window dynamic CSG XmNwinGravity XmCWinGravity int dynamic CSG XmNwmTimeout XmCWmTimeout int 5000 ms CSG _X_m_N_b_a_s_e_H_e_i_g_h_t Specifies the base for a progression of preferred heights for the window manager to use in sizing the widget. The preferred heights are _X_m_N_b_a_s_e_H_e_i_g_h_t plus integral multiples of _X_m_N_h_e_i_g_h_t_I_n_c, with a minimum of _X_m_N_m_i_n_H_e_i_g_h_t and a maximum of _X_m_N_m_a_x_H_e_i_g_h_t. If an initial value is not supplied for _X_m_N_b_a_s_e_H_e_i_g_h_t but is supplied for _X_m_N_b_a_s_e_W_i_d_t_h, the value of _X_m_N_b_a_s_e_H_e_i_g_h_t is set to 0 when the widget is realized. _X_m_N_b_a_s_e_W_i_d_t_h Specifies the base for a progression of preferred widths for the window manager to use in sizing the widget. The preferred widths are _X_m_N_b_a_s_e_W_i_d_t_h plus integral multiples of _X_m_N_w_i_d_t_h_I_n_c, with a minimum of _X_m_N_m_i_n_W_i_d_t_h and a maximum of _X_m_N_m_a_x_W_i_d_t_h. If an initial value is not supplied for _X_m_N_b_a_s_e_W_i_d_t_h but is supplied for _X_m_N_b_a_s_e_H_e_i_g_h_t, the value of _X_m_N_b_a_s_e_W_i_d_t_h is set to 0 when the widget is realized. _X_m_N_h_e_i_g_h_t_I_n_c Specifies the increment for a progression of preferred heights for the window manager to use in sizing the widget. The preferred heights are _X_m_N_b_a_s_e_H_e_i_g_h_t plus integral multiples of _X_m_N_h_e_i_g_h_t_I_n_c, with a minimum of _X_m_N_m_i_n_H_e_i_g_h_t and a maximum of _X_m_N_m_a_x_H_e_i_g_h_t. If an initial value is not supplied for _X_m_N_h_e_i_g_h_t_I_n_c but is supplied for _X_m_N_w_i_d_t_h_I_n_c, the value of _X_m_N_h_e_i_g_h_t_I_n_c is set to 1 when the widget is realized. _X_m_N_i_c_o_n_M_a_s_k Specifies a bitmap that could be used by the window manager to clip the _X_m_N_i_c_o_n_P_i_x_m_a_p bitmap to make the icon nonrectangular. _X_m_N_i_c_o_n_P_i_x_m_a_p Specifies a bitmap that could be used by the window Page 2 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) manager as the application's icon. _X_m_N_i_c_o_n_W_i_n_d_o_w Specifies the ID of a window that could be used by the window manager as the application's icon. _X_m_N_i_c_o_n_X Specifies a suitable place to put the application's icon; this is a hint to the window manager in root window coordinates. Since the window manager controls icon placement policy, this may be ignored. If no initial value is specified, the value is set to -1 when the widget is realized. _X_m_N_i_c_o_n_Y Specifies a suitable place to put the application's icon; this is a hint to the window manager in root window coordinates. Since the window manager controls icon placement policy, this may be ignored. If no initial value is specified, the value is set to -1 when the widget is realized. _X_m_N_i_n_i_t_i_a_l_S_t_a_t_e Specifies the state in which the application wishes the widget instance to start. It must be one of the constants _N_o_r_m_a_l_S_t_a_t_e or _I_c_o_n_i_c_S_t_a_t_e. _X_m_N_i_n_p_u_t Specifies the application's input model for this widget and its descendants. The meaning of a True or False value for this resource depends on the presence or absence of a _W_M__T_A_K_E__F_O_C_U_S atom in the _W_M__P_R_O_T_O_C_O_L_S property: IIIInnnnppppuuuutttt MMMMooooddddeeeellll XXXXmmmmNNNNiiiinnnnppppuuuutttt WWWWMMMM____TTTTAAAAKKKKEEEE____FFFFOOOOCCCCUUUUSSSS __________________________________________ No input False Absent Passive True Absent Locally active True Present Globally active False Present For more information on input models, see the X Consortium Standard IIIInnnntttteeeerrrr----CCCClllliiiieeeennnntttt CCCCoooommmmmmmmuuuunnnniiiiccccaaaattttiiiioooonnnn CCCCoooonnnnvvvveeeennnnttttiiiioooonnnnssss MMMMaaaannnnuuuuaaaallll.... _X_m_N_m_a_x_A_s_p_e_c_t_X Specifies the numerator of the maximum aspect ratio (X/Y) that the application wishes the widget instance to have. _X_m_N_m_a_x_A_s_p_e_c_t_Y Specifies the denominator of the maximum aspect ratio Page 3 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) (X/Y) that the application wishes the widget instance to have. _X_m_N_m_a_x_H_e_i_g_h_t Specifies the maximum height that the application wishes the widget instance to have. If an initial value is not supplied for _X_m_N_m_a_x_H_e_i_g_h_t but is supplied for _X_m_N_m_a_x_W_i_d_t_h, the value of _X_m_N_m_a_x_H_e_i_g_h_t is set to 32767 when the widget is realized. _X_m_N_m_a_x_W_i_d_t_h Specifies the maximum width that the application wishes the widget instance to have. If an initial value is not supplied for _X_m_N_m_a_x_W_i_d_t_h but is supplied for _X_m_N_m_a_x_H_e_i_g_h_t, the value of _X_m_N_m_a_x_W_i_d_t_h is set to 32767 when the widget is realized. _X_m_N_m_i_n_A_s_p_e_c_t_X Specifies the numerator of the minimum aspect ratio (X/Y) that the application wishes the widget instance to have. _X_m_N_m_i_n_A_s_p_e_c_t_Y Specifies the denominator of the minimum aspect ratio (X/Y) that the application wishes the widget instance to have. _X_m_N_m_i_n_H_e_i_g_h_t Specifies the minimum height that the application wishes the widget instance to have. If an initial value is not supplied for _X_m_N_m_i_n_H_e_i_g_h_t but is supplied for _X_m_N_m_i_n_W_i_d_t_h, the value of _X_m_N_m_i_n_H_e_i_g_h_t is set to 1 when the widget is realized. _X_m_N_m_i_n_W_i_d_t_h Specifies the minimum width that the application wishes the widget instance to have. If an initial value is not supplied for _X_m_N_m_i_n_W_i_d_t_h but is supplied for _X_m_N_m_i_n_H_e_i_g_h_t, the value of _X_m_N_m_i_n_W_i_d_t_h is set to 1 when the widget is realized. _X_m_N_t_i_t_l_e Specifies the application name to be displayed by the window manager. The default is the icon name if specified, otherwise the name of the application. _X_m_N_t_i_t_l_e_E_n_c_o_d_i_n_g Specifies a property type that represents the encoding of the _X_m_N_t_i_t_l_e string. If a language procedure has been set, the default is None; otherwise, the default is XA_STRING. When the widget is realized, if the value is None, the corresponding name is assumed to be Page 4 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) in the current locale. The name is passed to _X_m_b_T_e_x_t_L_i_s_t_T_o_T_e_x_t_P_r_o_p_e_r_t_y with an encoding style of _X_S_t_d_I_C_C_T_e_x_t_S_t_y_l_e. The resulting encoding is "STRING" if the name is fully convertible to "STRING," otherwise "COMPOUND_TEXT." The values of the encoding resources are not changed; they remain None. _X_m_N_t_r_a_n_s_i_e_n_t Specifies a Boolean value that is True if the widget instance is transient, typically a popup on behalf of another widget. The window manager may treat a transient widget's window differently from other windows. For example, a window manager may not iconify a transient window separately from its associated application. Applications and users should not normally alter this resource. _X_m_N_w_a_i_t_F_o_r_W_m When True, specifies that the Intrinsics waits the length of time given by the _X_m_N_w_m_T_i_m_e_o_u_t resource for the window manager to respond to certain actions before assuming that there is no window manager present. This resource is altered by the Intrinsics as it receives, or fails to receive, responses from the window manager. _X_m_N_w_i_d_t_h_I_n_c Specifies the base for a progression of preferred widths for the window manager to use in sizing the widget. The preferred widths are _X_m_N_b_a_s_e_W_i_d_t_h plus integral multiples of _X_m_N_w_i_d_t_h_I_n_c, with a minimum of _X_m_N_m_i_n_W_i_d_t_h and a maximum of _X_m_N_m_a_x_W_i_d_t_h. If an initial value is not supplied for _X_m_N_w_i_d_t_h_I_n_c but is supplied for _X_m_N_h_e_i_g_h_t_I_n_c, the value of _X_m_N_w_i_d_t_h_I_n_c is set to 1 when the widget is realized. _X_m_N_w_i_n_d_o_w_G_r_o_u_p Specifies the ID of a window with which this widget instance is associated. By convention, this window is the "leader" of a group of windows. A window manager may treat all windows in a group in some way; for example, it may always move or iconify them together. If no initial value is specified, the value is set to the window of the first realized ancestor widget in the parent hierarchy when the widget is realized. If a value of _X_t_U_n_s_p_e_c_i_f_i_e_d_W_i_n_d_o_w_G_r_o_u_p is specified, no window group is Page 5 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) set. _X_m_N_w_i_n_G_r_a_v_i_t_y Specifies the window gravity for use by the window manager in positioning the widget. If no initial value is specified, the value is set when the widget is realized. If _X_m_N_g_e_o_m_e_t_r_y is not NULL, _X_m_N_w_i_n_G_r_a_v_i_t_y is set to the window gravity returned by _X_W_M_G_e_o_m_e_t_r_y. Otherwise, _X_m_N_w_i_n_G_r_a_v_i_t_y is set to _N_o_r_t_h_W_e_s_t_G_r_a_v_i_t_y. _X_m_N_w_m_T_i_m_e_o_u_t Specifies the length of time that the Intrinsics waits for the window manager to respond to certain actions before assuming that there is no window manager present. The value is in milliseconds and must not be negative. IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss WMShell inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the man page for that superclass. SSSShhhheeeellllllll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss ____________________________________________________________________________________________________ XmNallowShellResize XmCAllowShellResize Boolean False CG XmNcreatePopupChildProc XmCCreatePopupChildProc XtCreatePopupChildProc NULL CSG XmNgeometry XmCGeometry String NULL CSG XmNoverrideRedirect XmCOverrideRedirect Boolean False CSG XmNpopdownCallback XmCCallback XtCallbackList NULL C XmNpopupCallback XmCCallback XtCallbackList NULL C XmNsaveUnder XmCSaveUnder Boolean False CSG XmNvisual XmCVisual Visual * CopyFromParent CSG CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss ______________________________________________________________________ XmNchildren XmCReadOnly WidgetList NULL G XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG XmNnumChildren XmCReadOnly Cardinal 0 G CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss ______________________________________________________________________________________________________________ XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG XmNancestorSensitive XmCSensitive Boolean dynamic G XmNbackground XmCBackground Pixel dynamic CSG XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG Page 6 (printed 11/11/03) WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV WWWWMMMMSSSShhhheeeellllllll((((3333XXXX)))) XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG XmNborderWidth XmCBorderWidth Dimension 1 CSG XmNcolormap XmCColormap Colormap dynamic CG XmNdepth XmCDepth int dynamic CG XmNdestroyCallback XmCCallback XtCallbackList NULL C XmNheight XmCHeight Dimension dynamic CSG XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG XmNscreen XmCScreen Screen * dynamic CG XmNsensitive XmCSensitive Boolean True CSG XmNtranslations XmCTranslations XtTranslations dynamic CSG XmNwidth XmCWidth Dimension dynamic CSG XmNx XmCPosition Position 0 CSG XmNy XmCPosition Position 0 CSG TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss There are no translations for WMShell. RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN _C_o_m_p_o_s_i_t_e(_3_X), _C_o_r_e(_3_X), and _S_h_e_l_l(_3_X). Page 7 (printed 11/11/03)